<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增产品')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-post-add">
        <div class="form-group">
            <!-- TODO--添加图片id-->
            <a class="col-sm-3 control-label"  th:href="@{'/pro/picture/allPicture'}">查看产品图库</a>
            <div class="col-sm-8">

           图片名称: <input name="pictureName" th:value="${pictureName}"/>
            </div>
            <input type="hidden" name="pictureId" th:value="${pictureId}"/>

        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">型号：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="managerType" id="managerType" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">品名：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="managerName" id="managerName" required>
            </div>
        </div>

          <!--类别-->
        <div class="form-group">

            <div class="col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">类别:</label>
                    <div class="col-sm-9">
                        <select class="form-control" name="classesId">
                            <option th:each="proClassesVo:${proClassesVos}" th:value="${proClassesVo.classesId}">[[${proClassesVo.classesName}]]</option>
                        </select>

                    </div>
                </div>
            </div>

        </div>
        <!--类别-->
        <div class="form-group">

            <div class="col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">规格:</label>
                    <div class="col-sm-9">
                        <select class="form-control" name="sizeId">
                            <option th:each="proSizeVo:${proSizeVos}" th:value="${proSizeVo.sizeId}">[[${proSizeVo.sizeName}]]</option>
                        </select>

                    </div>
                </div>
            </div>

        </div>
        <!--系列-->
        <div class="form-group">

            <div class="col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">系列</label>
                    <div class="col-sm-9">
                        <select class="form-control" name="lineId">
                            <option th:each="prolineVo:${proLineVos}" th:value="${prolineVo.lineId}">[[${prolineVo.lineName}]]</option>
                        </select>

                    </div>
                </div>
            </div>

        </div>
        <!--风格-->

        <div class="form-group">

            <div class="col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">风格</label>
                    <div class="col-sm-9">
                        <select class="form-control" name="styleId">
                            <option th:each="proStyleVo:${proStyleVos}" th:value="${proStyleVo.styleId}">[[${proStyleVo.styleName}]]</option>
                        </select>

                    </div>
                </div>
            </div>

        </div>
        <!--材质-->
        <div class="form-group">

            <div class="col-md-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">材质</label>
                    <div class="col-sm-9">
                        <select class="form-control" name="textureId">
                            <option th:each="proTextureVo:${proTextureVos}" th:value="${proTextureVo.textureId}">[[${proTextureVo.textureName}]]</option>
                        </select>

                    </div>
                </div>
            </div>

        </div>


        <div class="form-group">
            <label class="col-sm-3 control-label">产地：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="managerPlace" id="managerPlace" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label ">单价：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="managerPrice" id="managerPrice" required>
            </div>
        </div>


        <div class="form-group">
            <label class="col-sm-3 control-label ">数量：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" name="managerNum" id="managerNum" required>
            </div>
        </div>


    </form>
</div>
<th:block th:include="include :: footer" />
<script type="text/javascript">
    var prefix = ctx + "pro/manager";

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/add", $('#form-post-add').serialize());
        }
    }
</script>
</body>
</html>
